package main;

public class Sentence
{
	private String[] words;
	
	public Sentence(String str)
	{
		words = str.split(" ");
	}
	
	public String getWord(int index)
	{
		if (index == -1) // Represents the NULL word
			return null;
		return words[index];
	}
	
	public int length()
	{
		return words.length;
	}
}
